package com.vcar.LDiceClient.core
{
	import com.vcar.LDiceClient.config.Config;
	import com.vcar.LDiceClient.dataproxy.RequestMessage;
	import com.vcar.LDiceClient.manager.ITick;
	
	import mx.logging.ILogger;
	import mx.logging.Log;
	
	public class HeartBeatTick implements ITick
	{
		private static var log:ILogger=Log.getLogger("com.vcar.LDiceClient.core.HeartBeatTick");
		public function HeartBeatTick()
		{
			
		}
		
		public function doTick():void
		{
			log.debug("心跳");
			var r:RequestMessage=new RequestMessage();
			r.type=1;
			r.subtype=1;
			ApplicationFacade.getInstance().send(r);
		}
		
		public function get clipName():String
		{
			return "HeartBeatTick";
		}
		
		
		public function get step():int
		{
			return (1000/Config.frameRate)*25;
		}
		
	}
}